<template>
  <div class="book">
    <div style="width: 40%;">
      <quilll-editor :content='content'
        @contentChange='onQuillEditorChange'></quilll-editor>
    </div>
  </div>
</template>

<script setup lang="ts">
import quilllEditor from "@/components/quilll-editor/index.vue";
import { ref, onMounted } from "vue";
const content = ref("");
const onQuillEditorChange = (val: string) => {
  console.log(val, "valvalvalvalval");
};
onMounted(() => {});
</script>

<style lang="less" scoped>
.book {
  display: flex;
  justify-content: center;
  :deep(.ql-editor) {
    height: 500px;
  }
}
</style>
